{% extends 'base.html' %}
{#{% load myinclusion %}#}
{% block css %}
{% endblock %}
{% block content %}
<div class="right_col" role="main">
    <div class="">
        <div class="clearfix"></div>

        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="tabbable" id="tabs-754998">
                    <ul class="nav nav-tabs">
                        <li class="active">
                        <a href="#panel-single" data-toggle="tab">文件下载</a>
                        </li>
                    </ul>

                    <div class="x_panel" style="border-top:none;">
                        <div class="x_title">
                            <h2>文件管理 </h2>
                            <ul class="nav navbar-right panel_toolbox">
                                <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                </li>
                                <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                                <ul class="dropdown-menu" role="menu">
                                    <li><a href="#">Settings 1</a>
                                    </li>
                                    <li><a href="#">Settings 2</a>
                                    </li>
                                </ul>
                                </li>
                                <li><a class="close-link"><i class="fa fa-close"></i></a>
                                </li>
                            </ul>
                            <div class="clearfix"></div>
                        </div>
                        <div class="x_content">
                            <form method="post" class="form-horizontal form-border" enctype="multipart/form-data" action="{% url 'file_down' %}">

                                      <select name="host_ip">
                                            <option value = "">---选择host---</option>
                                                {% for host in host_list %}
                                            <option value = "{{ host }}">{{ host }}</option>
                                                {% endfor %}
                                        </select>
                                    <span>远程路径:<input type="text" value="" placeholder="绝对路径" name="file_path"/></span><br>
                                    <input type="submit" value="提交"/>
                            </form>
                        </div>
                        <div>
                            <h3> 执行结果: {{ ret }}</h3>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
{% endblock %}

{% block js %}
<script src="/static/js/csrf.js"></script>

{% endblock %}
